#ifndef	_CK_DES_H_
#define _CK_DES_H_


#define DES_BLOCK_SIZE_BYTES		8
#define DES_KEY_SIZE_BITS			56
#define DES_KEY_SIZE_BITS_EXTERNAL	64
#define DES_KEY_SIZE_BYTES_EXTERNAL	(DES_KEY_SIZE_BITS_EXTERNAL / 8)

#pragma pack(1)
struct _desInst 
{
	U8 kn[16][8];
};
#pragma pack()

typedef struct _desInst *desInst;

int desinit(desInst dinst);
void dessetkey(desInst dinst, char *key);
void endes(desInst dinst, char *block);


#endif	/*_CK_DES_H_*/
